<?php

namespace App\Extensions\Renderable;

use App\PatentApply;
use Illuminate\Contracts\Support\Renderable;

class PatentAgencyDetailRenderAble implements Renderable
{
    public function render($key = '')
    {
        $model = PatentApply::query()->find($key);
        return \Encore\Admin\Facades\Admin::show($model, function (\Encore\Admin\Show $show) {
            $show->panel()->view('show.tab-panel');
            $show->field('agency.company', __('代理机构'));
            $show->field('agency.name', '联系人');
            $show->field('agency.mobile', __('联系电话'));
            $show->field('agency.address', '地址');
            $show->field('agency.marje', '擅长领域');
            $show->field('agency.about', '机构简介');
        });
    }


}
